package dongze.com.ckdj.data.entity.response;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.JsonAdapter;

import dongze.com.ckdj.data.gson.GsonNullDeserializer;

/**
 * Created by renxiaoxiao on 2017/8/24.
 */

@JsonAdapter(GsonNullDeserializer.class)
public class QueryOtherPointsResponse implements Parcelable {
    String id;
    String type;
    String name_ch;
    String name_en;
    int sort;
    String brand_code;
    String brand_name;
    String remark;

    public QueryOtherPointsResponse() {}

    public QueryOtherPointsResponse(String id, String type, String name_ch, String name_en,
                                    int sort, String brand_code, String brand_name, String remark) {
        this.id = id;
        this.type = type;
        this.name_ch = name_ch;
        this.name_en = name_en;
        this.sort = sort;
        this.brand_code = brand_code;
        this.brand_name = brand_name;
        this.remark = remark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName_ch() {
        return name_ch;
    }

    public void setName_ch(String name_ch) {
        this.name_ch = name_ch;
    }

    public String getName_en() {
        return name_en;
    }

    public void setName_en(String name_en) {
        this.name_en = name_en;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getBrand_code() {
        return brand_code;
    }

    public void setBrand_code(String brand_code) {
        this.brand_code = brand_code;
    }

    public String getBrand_name() {
        return brand_name;
    }

    public void setBrand_name(String brand_name) {
        this.brand_name = brand_name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(type);
        dest.writeString(name_ch);
        dest.writeString(name_en);
        dest.writeInt(sort);
        dest.writeString(brand_code);
        dest.writeString(brand_name);
        dest.writeString(remark);
    }

    public static final Parcelable.Creator<QueryOtherPointsResponse> CREATOR = new Creator<QueryOtherPointsResponse>() {
        @Override
        public QueryOtherPointsResponse createFromParcel(Parcel source) {
            return new QueryOtherPointsResponse(source.readString(), source.readString(),
                    source.readString(), source.readString(), source.readInt(), source.readString(), source.readString(), source.readString());
        }

        @Override
        public QueryOtherPointsResponse[] newArray(int size) {
            return new QueryOtherPointsResponse[size];
        }
    };
}
